package com.example.rightmost.service.Impl;

import com.example.rightmost.dao.PyqMapper;
import com.example.rightmost.entity.Pyq;
import com.example.rightmost.service.PyqService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: javazhang
 * @date: 2024/8/26
 * @description:
 */
@Service
public class PyqServiceImpl implements PyqService {
    @Autowired
    public PyqMapper pyqMapper;

    @Override
    public List<Pyq> list() {
        return pyqMapper.list();
    }

    @Override
    public List<Pyq> followList(Integer userId) {
        return pyqMapper.followList(userId);
    }
}
